package decorator.coffee.decorate;

import decorator.coffee.Beverage;
import decorator.coffee.CondimentDecorator;

public class Soy extends CondimentDecorator{

    Beverage beverage;

    public Soy(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + ",Soy";
    }

    @Override
    public double cost() {
        return .20 + beverage.cost();
    }
}
